]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
overview: Don't block on wayland popovers
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 18 Nov 2022 22:57:03 +0000 (23:57 +0100)
committerMarge Bot <marge-bot@gnome.org>
Sun, 20 Nov 2022 20:49:21 +0000 (20:49 +0000)
We don't allow entering the overview when there's an ongoing grab
operation, as they are generally incompatible with ClutterGrab.

The exception are wayland popups which are expected to work, and
don't conflict with ClutterGrabs.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6092

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2549>

js/ui/overview.js

index 86e02a844db0de92d20fa9439f29bc232e0a117a..192cddffafc28fe497f15cf1d6d213021805b240 100644 (file)
@@ -450,7 +450,8 @@ var Overview = class extends Signals.EventEmitter {
         if (this._shown) {
             let shouldBeModal = !this._inXdndDrag;
             if (shouldBeModal && !this._modal) {
-                if (global.display.get_grab_op() !== Meta.GrabOp.NONE) {
+                if (global.display.get_grab_op() !== Meta.GrabOp.NONE &&
+                    global.display.get_grab_op() !== Meta.GrabOp.WAYLAND_POPUP) {
                     this.hide();
                     return false;
                 }